<?php require VIEW_PATH."/header.php";?>
<body>
  <form method="post">
    <table class="hd-table hd-table-form hd-form">
      <thead>
        <tr>
          <td colspan="2">添加栏目</td>
        </tr>
      </thead>
      <tbody>
        <tr>
          <th>父级</th>
          <td>
           <select name="pid">
             <option value="0">===顶级栏目===</option>
             {{foreach from="$cat" value="$v"}}
             <option value="{{$v['cat_id']}}">{{$v['_cat_name']}}</option>
             {{endforeach}}
           </select>
         </td>
       </tr>
       <tr>
        <th>栏目名称</th>
        <td>
          <input type="text" name="cat_name" class="hd-w300">
        </td>
      </tr>
      <tr>
        <th>搜索类型</th>
        <td>
          <select name="type_id" id="">
            {{foreach from="$goodsType" value="$v"}}
            <option value="{{$v['id']}}">{{$v['type_name']}}</option>
            {{endforeach}}
          </select>
        </td>
      </tr>
      <tr>
        <th>栏目关键词</th>
        <td>
          <input type="text" name="keyword" class="hd-w300">
        </td>
      </tr>
      <tr>
        <th>栏目描述</th>
        <td>
          <textarea name="dest" class="hd-w300 hd-h100"></textarea>
        </td>
      </tr>
      <tr>
        <td colspan="2">
          <button class="hd-btn hd-btn-primary">提交</button>
        </td>
      </tr>
    </tbody>
  </table>
</form>
</body>
</html>